Skip to content

[opt] Fix CanonicalizePass clamping: create Literal from known bits if dne#4575

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_947784218
Jul 17, 2026
Merged

[opt] Fix CanonicalizePass clamping: create Literal from known bits if dne#4575
copybara-service[bot] merged 1 commit into
mainfrom
test_947784218

Conversation

@copybara-service

Copy link
Copy Markdown

[opt] Fix CanonicalizePass clamping: create Literal from known bits if dne

If the clamped value was not a Literal but was known, MaybeCanonicalizeClamp previously assumed it was a Literal and crashed. Now we construct a Literal from the Bits returned by the query engine.

@copybara-service
copybara-service Bot force-pushed the test_947784218 branch 3 times, most recently from 53c8f46 to b795959 Compare July 17, 2026 17:46
…f dne

If the clamped value was not a Literal but was known, MaybeCanonicalizeClamp previously assumed it was a Literal and crashed. Now we construct a Literal from the Bits returned by the query engine.

PiperOrigin-RevId: 949696244
@copybara-service
copybara-service Bot merged commit c4467d9 into main Jul 17, 2026
@copybara-service
copybara-service Bot deleted the test_947784218 branch July 17, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant